<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>


    var p = prompt("月份");
    if(5<p<10) {
        var q = prompt("是淡季还是旺季");
        if (q == "旺季") {
            alert("头等舱2000、经济舱800");
        } else {
            alert("头等舱800、经济舱200");
        }
    }else {
        alert("淡季");
    }

</script>

</body>
</html>